package com.im.dynamic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.im.dynamic.entity.Post;
import com.im.dynamic.mapper.PostMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * User: key
 * ClassName:PostService
 * Date: 2023/7/12
 * Time: 16:30
 * description:
 */
@Service
public class PostService extends ServiceImpl<PostMapper, Post> implements com.im.dynamic.service.PostService {
    @Autowired
    private PostMapper postMapper;
    @Override
    public List<Post> getByUserId(Long id) {
        List<Post> list = postMapper.getByUserId(id);
        return list;
    }
}
